package com.yyi.springcloud.yyi.service.impl;


import com.yyi.springcloud.yyi.bean.AlarmMessage;
import com.yyi.springcloud.yyi.bean.warpper.AlaramListMessage;
import com.yyi.springcloud.yyi.bean.warpper.TestData;
import com.yyi.springcloud.yyi.mapper.AlarmMessageMapper;
import com.yyi.springcloud.yyi.service.AlarmMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AlarmMessageServiceImpl implements AlarmMessageService {
    @Autowired
    private AlarmMessageMapper alarmMessageMapper;
    @Override
    public List<AlaramListMessage> getAlarmList() {
        return alarmMessageMapper.getAlarmList();
    }

    @Override
    public List<TestData> getTestDataList(String primarykey) {
        return alarmMessageMapper.getDataList(primarykey);
    }
}
